package com.ruoyi.pay.controller;

import cn.dev33.satoken.annotation.SaCheckPermission;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.PageQuery;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.pay.domain.MchApp;
import com.ruoyi.pay.service.impl.MchAppServiceImpl;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 商户应用管理类
 *
 * @author zhuxiao
 * @site
 * @date 2021-06-16 09:15
 */

@RequiredArgsConstructor
@RestController
@RequestMapping("/api/mchApps")
public class MchAppController extends BaseController {

    private final MchAppServiceImpl mchAppService;

    /**
     * @Description: 应用列表
    */
    @GetMapping("/list")
    @SaCheckPermission("payTest:mchApps:list")
    public TableDataInfo<MchApp> list(PageQuery pageQuery, MchApp mchApp) {
        TableDataInfo<MchApp> page = mchAppService.selectPage(pageQuery, mchApp);
        return page;
    }


}
